Dynomotion

Group: DynoMotion Message: 14430 From: tortoisedundee Date: 2/19/2017
Subject: address preset

Sir:


Is there a C language statement to preset the hardware address

counter. This would be super useful in my probe routines.


Thank you,


Fayette Sims


Group: DynoMotion Message: 14431 From: Tom Kerekes Date: 2/19/2017
Subject: Re: address preset
Hi Fayette,

I'm not exactly sure what you are asking. It is usually best to leave the hardware machine coordinates alone and instead adjust Tool or Fixture offsets based on probing. 

But if necessary EnableAxisDest(axis,dest) can be used to set the currently commanded destination for open loop systems.

HTH
Regards

TK

On Feb 19, 2017, at 1:24 PM, tortoisedundee@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

Sir:


Is there a C language statement to preset the hardware address

counter. This would be super useful in my probe routines.


Thank you,


Fayette Sims


Group: DynoMotion Message: 14435 From: tortoisedundee Date: 2/19/2017
Subject: Re: address preset
Sir:

This is a close loop system.
I don't use limit switches and would like to be able to define the
current address in C. I am aware of being able to set it to zero,
but would like to be able to use a non zero number. I don't want
to move the axis to a destination, but set the current one according
to the probe actuation with the offsets for its size. I am aware that this
is not a normal practice, but would be quite convenient for me.
This is a mill that I have used for several years and is one of a number of
machines on which I use your controller.

Also is it possible to append data to a file written too in an earlier session
without deleting the data from the previous run?

Thank you so much,

Fayette Sims
Group: DynoMotion Message: 14436 From: Tom Kerekes Date: 2/19/2017
Subject: Re: address preset

Hi Fayette,

For a closed loop system the Axis Position should be set to the new measured/known position.  This should be changed with the Axis disabled to avoid a violent servo reaction to a sudden change in measured position.  The Axis should be re-enabled while setting the target position to the same position so as to not move.  The code would be:

DisableAxis(axis);

chan[axis].Position = NewValue;

EnableAxisDest(axis, NewValue);

We'll look into how difficult it would be to add an append write mode.

Regards
TK


On 2/19/2017 4:24 PM, tortoisedundee@... [DynoMotion] wrote:
 

Sir:

This is a close loop system.
I don't use limit switches and would like to be able to define the
current address in C. I am aware of being able to set it to zero,
but would like to be able to use a non zero number. I don't want
to move the axis to a destination, but set the current one according
to the probe actuation with the offsets for its size. I am aware that this
is not a normal practice, but would be quite convenient for me.
This is a mill that I have used for several years and is one of a number of
machines on which I use your controller.

Also is it possible to append data to a file written too in an earlier session
without deleting the data from the previous run?

Thank you so much,

Fayette Sims


Group: DynoMotion Message: 14437 From: Tom Kerekes Date: 2/19/2017
Subject: Re: address preset

Hi Fayette,

Here is a patch for the KFLOP file append write text mode "at".

Files are located here and should be compatible with test Version 4.34h

New KFLOP Firmware, KMotionDLL.dll, changed source file, and test C Program

http://dynomotion.com/Software/Patch/AddKFLOPfileAppendModeV434h/  

The test C Program appends 4 time stamps to a file.  If the file doesn't exist it is created.

I ran the test program 3 times and the PC file shows:

   338.120702040
   338.120892160
   338.121074160
   338.121255600
   368.479951920
   368.480143000
   368.480324820
   368.480506000
   369.840122080
   369.840312680
   369.840494520
   369.840676120

Please let us know if it works for you or there are any issues.

Regards

TK


On 2/19/2017 4:35 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 

Hi Fayette,

For a closed loop system the Axis Position should be set to the new measured/known position.  This should be changed with the Axis disabled to avoid a violent servo reaction to a sudden change in measured position.  The Axis should be re-enabled while setting the target position to the same position so as to not move.  The code would be:

DisableAxis(axis);

chan[axis].Position = NewValue;

EnableAxisDest(axis, NewValue);

We'll look into how difficult it would be to add an append write mode.

Regards
TK


On 2/19/2017 4:24 PM, tortoisedundee@... [DynoMotion] wrote:
 

Sir:

This is a close loop system.
I don't use limit switches and would like to be able to define the
current address in C. I am aware of being able to set it to zero,
but would like to be able to use a non zero number. I don't want
to move the axis to a destination, but set the current one according
to the probe actuation with the offsets for its size. I am aware that this
is not a normal practice, but would be quite convenient for me.
This is a mill that I have used for several years and is one of a number of
machines on which I use your controller.

Also is it possible to append data to a file written too in an earlier session
without deleting the data from the previous run?

Thank you so much,

Fayette Sims



Group: DynoMotion Message: 14438 From: tortoisedundee Date: 2/20/2017
Subject: Re: address preset
Tom:

Thank you so much I will test
this later today.

Again many thanks,

Fayette Sims
Group: DynoMotion Message: 14439 From: tortoisedundee Date: 2/20/2017
Subject: Re: address preset
Tom:

I tested the items you sent me including the append file.

So far everything seems to work perfectly.

This will make a huge difference in this devices utility for me.

Thank you so very much,

Fayette Sims